package com.severez.bluetoothcontroller.utils;

import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;

public class MyDialogs {
    public static ProgressDialog getProgressDialog(Context context, int msg) {
	ProgressDialog pDialog = new ProgressDialog(context);
	pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
	pDialog.setMessage(context.getResources().getString(msg));
	pDialog.setIndeterminate(false);
	pDialog.setCancelable(false);
	return pDialog;
    }

    public static ProgressDialog getProgressDialog(Context context, String msg) {
	ProgressDialog pDialog = new ProgressDialog(context);
	pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
	pDialog.setMessage(msg);
	pDialog.setIndeterminate(false);
	pDialog.setCancelable(false);
	return pDialog;
    }

    public static AlertDialog.Builder getAlertDialog(Context context, String title, String msg) {
	AlertDialog.Builder builder = new AlertDialog.Builder(context).setTitle(title).setMessage(msg).setCancelable(false);
	return builder;
    }
}
